<h1>OER Recommender - Indexed Collections</h1>
<p><a href="/">Return to home page</a></p>

<h2>Languages</h2>
<ul>
<% @languages.each do |language| %>
<li><%= language.name %> (<%= language.indexed_records %> records)</li>
<% end %>
</ul>

<% collection = nil %>
<% @feeds.each do |feed| %>
<% if feed.harvested_from_title != collection %>
<% collection = feed.harvested_from_title %>
<% if !collection.nil? %></ul><% end %>
<h2><%= link_to feed.harvested_from_title, feed.harvested_from_display_uri, :rel => "nofollow" %></h2>
<ul>
<% end %>
<li>
	<%= link_to feed.title, feed_query_uri(feed), :rel => "nofollow" %>
	<span class="harvest_time">
		(feed_id = <%= feed.id.to_s %>)
		(<%= feed.entries_count %> record<%= feed.entries_count == 1 ? "" : "s" %>) harvested on <%= feed.last_harvested_at.strftime("%d %b %Y") %>
	</span>
</li>
<% end %>

</ul>